add subscription test, fix some other tests
Merge pull request #9 from oroulet/master

add subscription test, fix some other tests