test: discover.js

test:
 discover.js: Now properly tests for valid report object
              during the discovery mode.