Fix FakeExecutor class.
Fix stateChanged validation on Scheduler Class. And created tests to
check the changes on that method.