Adding unit tests for new InsertOrReplace() and InsertOrReplaceAll() methods.