Add tests for the scan injector

See #3