update test to assert for string

updated the test to assert for string, instead of Date object