Adds test-utils.py

Adds test for utils/str_to_dict, breaks due to nested list bug

Adds check for keys already existing in result