implemented first unit test on token handler.