added tests for time conversion