updated tests to get error status