remove unneeded test and destroy objects