adding tests for ComponentResponsePromiseFactoryImpl.java