updated date test to match the new api and fixed some error messages