Adds tests for reporting errors returned by search