Remove error messages from test assertions