test and fix system.register on its own