Test for checking of deleted records