-fixed an issue in the tests to support new data setting
-added an extra check when dealing with params in default getData method