add spec test for step create agent environment

Change-Id: I04204025f455d5bcfee6e44ce4f2fe7edec1a14b