Fix the problem that ActionResponseGenerator doesn't use shared API
Fix unit tests