add tests for invalid operations

call this `test_prepare_errors_on_non_existent_table`