Added IsRunning and tests for it