Dynamic injection works with beans along with a test