Unit tests for relationships controller