relay: add more tests for relay class