Merge pull request #66 from unknownbrackets/scheduling

Add some tests for the dispatch thread
Merge pull request #67 from unknownbrackets/scheduling

Improve the dispatch tests a bit.