Redo scanner unit testing with mock objects