Changed  ``_test_pl`` in case ``q == 0``. This case occurs rarely, so there is no change in performance.