Add tests for revoke app

These tests are the remaining code from PR #208 which completes #112.