Test for MemoizeScopeToNeighbours read from json. Cleaned up the json it will write