Add more unit tests for json database add nodes