tests for the bonus api