* ignore and categories are now optional for scan_module and invoke.

* tests for scan_module and invoke.