fixed a leak when creating IOLoop instances in tests - refs #588