added additional tests on handling error scenarios
added additional tests for ComponentFactory on error handling scenarios