automatic bootstrap for tests