ISPN-5023 Random Failues on *FactoryBeanTest in the Spring Modules

Remove the test cache manager factories and test the production ones
directly.
Generate the component metadata file in the generated-resources directory, so that it doesn't force a recompile of the module every time.