Add unit tests for bouncer.

The current bouncer tests are more end-to-end tests. We should keep these but also add tests for the individual bouncer request handler methods.

See #1 for the initial bouncer work.