moving common preparation scenarios into tests.utils