name change to the capacity method and fix on the test for the capacity resize.