modified pl_tests