fixes #171

I ran this test hundreds of time and the analysed the offsets. I took the results and the timing issue can be fixed by changing the offset in the if condition. 

The test can still throw an exception if it can't connect to the ntp server which happens occasionally.