update tests for error checking