move latency memoize functions to Memoize
quit more cleanly
specify a plan (number of tests) for each test file
avoid warning on exit call in grammar