rename resize functions to set_maximum_size, add interface definition for set_maximum_size
slight test adjustment, removes redundant assertion