Init the test loop