adds test for calling when method with a Date object