Improve tests to check multiple whitespace replaces