Perl script now calls the application and checks for the required output

Summary: Fixes T9

Test Plan: run make test, and see that the perl script is successful

Maniphest Tasks: T9

Differential Revision: http://code.peteftw.com/D9