Fixed date bug in model tests.