Add code in finger_scanner.rb for tests in fingerprint_scanner_spec.rb