fix white-space handling in tests