added some unittests for boxhandler