add unit test for bootstrapping chooser.