Add test for Date constructor emulation