add tests for the relay