fixed unit tests
shared_ptr in BWB