Remove trailing whitespace in test case