removed test register code