add tests, check response codes