[ticket/331] Specify datetime class in tests