solution and test for p23