So I tried using Date.compareTo * 1000 to get the milliseconds. This, my current implementation, also works but continues to fail the test.