added test to deal with whitespace truncation