handling cases for bootstrap, adding key generator to test bootstrap class