Remove obsolete global var references.
Better error messages on tests.
All flog/flag rake tasks.