Add test for date conversion and get unit tests working