register unit test fixes