Bug fix for entity level action keys.
Fixed a test.
Added an integration test to cover entity level actions.

RB=331140
R=gogenc,kparikh,si-dev
A=gogenc