Added nomemory flag to tests
Fixed comparisons on query_cfg that broke prefs. Added more command line flags for quicker inspections