refators tests in different files