tests for a couple error checks