The tests are running in sequential, there was one record created in a previous test create test, this record is a new record created in "test remote data change". So after this one is deleted, there is still one left int the local dataset. We are not resetting local datasets after every test.

Added the above comment to the code.