Fix time adjustment for test

Fix #8.