Removes a lot of empty and unnecessary tests