Added test for converting hour to midnight