Fixed failing numbers and added test date function. Added more tests.