add tests for bounce handling API