adjust tests for error