add unit test around time conversion