fix error message in test