Added test
Fixed bug
Removed debug code
Merge pull request #49 from 28msec/fix-time-comparison

Fix time comparison