Solve cyclic references

any reason not to use the testRealm here?