refactored tests to give a status