Fix BuildEnvironment marshalling test