Added new test for addDataToDictionary function