test case for deleting via direct searching