Add template for capacity testing in ArrayList