Add realm support

/to @ritch 
/cc @bajtos @dashby3000 
L355-L365 should be wrapped in a `before` block, so that they are run only when the tests in this suite are run.