pl application test code