updating status codes and tests