Refactor bet handling test