Fails test when adapter is an autowire candidate