Fixed tests on datetime