Added new memory graph and basic tests.