added a test for whitespace handling