unit tests for bootstrapping