moving common setup code to abstract test