add mem for tests