Refactor test code for parse_date() #17