Use mock environment in new test.

Signed-off-by: Tim Van Steenburgh <tvansteenburgh@gmail.com>