added PAR unit tests to test_opt_functions.py