Snippets for bandit testing