refactored testApp to ofApp

bringing the pgsimple up to date with https://github.com/openframeworks/openFrameworks/pull/2442