fix bootstrap for unit test