simple program works with threaded scheduler
globals and test added
one more test case