Update test to getDate function