Remove unused code
Simplify memory storage
Clean up session specs, prevent warnings
Use expect for assertions