Move lister addition in scheduler tests to a pytest fixture
This lets us keep the tests a little DRYer.