making a controllers autowired field as bean for testing