Adding test for environment contextId