code tidy up for processors tests