Working cleanplot function for all tests using input plotwhat