Added some tests for scheudler
added logic.States test