Added Implementation and test cases for token service