Add unit test for NPROF re #8397

Signed-off-by: Karl Palmen <karl.palmen@stfc.ac.uk>
Remove warning about not processing NROF line re #8397

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