fixed Test replaceString and resetDate functions