Add autowired unit test