rspec for RelationsController

@futhr Now the coverage percentage is 87%. And I have modified some code in the RelationsContorller file.
Please check it. In my opinion, RelationsController->create function doesn't work well. So there is 1 error to test code. Let me know your feedback.