Factor out testdata loader