move bootstrapper in tests to constructor