CharacterMatrix.extend_matrix() test