added code to pass token check while unit testing