IGearClient.add accepts environment variables - fixes 568

Fixes #568 
This isn't great. Just wait for the application to exit and then perform the tests.