add a test to ensure the environment gets restored from cache upon second execution