Add assertion method to test equality about date and string