Wrote some subscriber tests.
TODO: check that functions receive correct params.