Make sure no Date constructor is used in tests
Merge pull request #1577 from ichernev/extract-date-constructor

Make sure no Date constructor is used in tests