Fixed taskscheduler tests.

	There has to be at least one shared_ptr to the scheduler for weak_ptrs to function.