updated tests to reflect accurate response codes