Refactor the RPN calculator unit test and add trace output capability to verify that scanning and parsing are interleaved on multiple threads