Some bugs in the tests, was using nanoseconds for a sleep and wrong nil evaluation for the tests.