Added Scanner test functionality.