Remove trailing spaces in test