Remove extra trailing whitespace in a test