Added test for ApplicationPidListener