add more unit tests for getBoxClass