Remove trailing spaces in tests