Asserting custom SimpleApi error is thrown