Add mocked environment to spec