update bootstrap.py and fix test