Add and test a `getSubscriptions` function

This adds and adds a rudimentary (and non-mocked) test for a
`getSubscriptions` function. This is the first of the three basic
wrapper functions missing from the clojure API wrapper.