appc/discovery: update test to new discovery
cas: update tests
Merge pull request #181 from jonboulle/tests

*: fix up broken tests