RegisterLazy with tests