add test for trailing space