Test bot the box integration and the box sampling kernel