Added tests for incoming push data.
Fixed phpunit tests.