updated unit tests. added getHourFromDate, getSecFromDate