Split testStore in two functions