test for onBootstrap