Add further tests for error helper