adding all the test cases fleshed out in answer to Guy's myBoxFunc example