Add maxmemory tests. Add testsuite for static and percentage memory options.