unit test changes for worker and tenant

removed unnecessary calls to format () method where able.
added coverage to token validation at first validation test