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 branch 'feature/7396_unit_test_for_loadiffromnexus' into develop