Add tests to expose date bug