added identity tests for environment and token get functions