extendes bootstrap for tests
Added Exception to test bootstrap