Add autowired tests