fix checkout, and run tests first