added tests for asDate