allow resolve snippet instance directly from class by name even there is a spring bean container
fix failed tests