Tests: fix imports

import all non-m2ee dependencies first, then change sys.path then import m2ee stuff