Added Room functions, and extracted tests into new module.