Query: Write some error tests.