autowired and test