Update a failing unit test based on white space error to use regex instead.