Deletion test not working fine