Fix limit on run function on commands.
Test - Add a test to show a possible way to fake the scan command