test fix date check in generated error