testapp: add exit code for stop routine

This patch adds exit code 0/1 to 'testapp.h stop' routine.