Addes test case to datetime and increase test coverage to 100%