Posorder inspector implementation & tests