first tests for pending route plus a few small tidy ups