tested new capacity constructor