add quantitative test: memory
add clean memory test
memory test: legend north-west
add quantitative tests on line