added tests for autowired factories by name and via hints