Refine the test cases for relation REST APIs