add test for relay