Add zend tests for errors