unit tests covering Discovery with areas to 100%. Fixed a bug in testDataFromFile, closing a xml/json data file after opening it