Added unit tests for server/Relay.js