Fixes #6542 rewrite test string for osx compatibility