Release session memory at the end of each test

Change-Id: I30dd917158091f1fe6f16d050ff7d6037493d3ef