Added test for bootstrap
Improve bootstrap test
More tests- and now bootstrap function call is wrapped in a try/catch that passes the error to the callback.