A couple of cosmetic fixes to JTermios and a couple of real fixes to PJC Tests

Running the test cases didn' t work out reliably.