Add test for error status