Add tests for SWF scheduler