Added unit test for Register Token