Multi-armed bandit optimization testing for rails