Allows to check that an app behaves as expected by sending messages from PhantomJS.