Fixed errors with selecting plan agent test.