Add assertion method to compare time and string