replace assert with BOOST_CHECK