Fix bugs: Not autowired field & differences b/w WEB/TEST environment