added allocation tests