Test hasEmptyBox