Added Tests for ShouldRun and ShouldRunWithLock