Fix failing test, bean was being double registered