Tidy code for PeaksWorkspaceTest.h re #7674

Signed-off-by: Karl Palmen <karl.palmen@stfc.ac.uk>