Move create* test helpers to a new factory_test.go file

This way we can more easily see all kinds of test helpers we have to create
objects, and make sure there's no duplication.