add different bootstrap for karma test
refactor test bootstrap