Remove GP code; move tests into tests.py