CreateSnapshot now returns Snapshot struct
add RunCommandWithClearEnvironment test