move variables to the beginning of the test