Added tests that represent potential reallocating issue