Write json tests for MemoizeScopeToNeighbours, but may need more complex test input
More complex input in test