tests for box functions