Fix another typo in pascal.py, add tests