Create unit test re #7396

Signed-off-by: Karl Palmen <karl.palmen@stfc.ac.uk>
Tidy code and comments re #7396

Signed-off-by: Karl Palmen <karl.palmen@stfc.ac.uk>
Merge remote-tracking branch 'origin/feature/7396_unit_test_for_loadiffromnexus'