Fixes minor bug in typecasting and updates DateTest for submission