add tests for invalid operations

this should probably be a different test `test_errors_on_non_existent_table`