add tests for relation api controller
respond with 200 instead of 201 for update request