add test for error status integer

forgot to add a test for the error status return value