Added tests to ensure proper PYTHONPATH insertion order.