Solution and tests for ppp