Add tests for nil values in date scopes