add WhenRunning to fake gordon

allows tests to inject behavior when running certain commands