fixed tests
fixed json file save issue, and links not being populated in data
added some rudimentary tests