Removes unneccesary tests.