Fixed failing SingleStateTest.
Fixed singleTask test.