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

Remove the test cache manager factories and test the production ones
directly.
ISPN-3743

Ignore some of the errors that can be thrown by a node while stopping:
IllegalStateException and NullPointerException.