Updated agent examples to be run by ktest.

Had to remove output for p22 and p23 as they were non-deterministic.