initialize kernel registers for tests