fixing error messages in unit tests