test checkSize method