fixed junit tests, clarified web status codes