graphite::relay class and corresponding tests