Add a prefix RESIDENT_MOD_ to constants.

Their constants are used in a global name space.
However, the naems is a little short.

INIT_OK ->
RESIDENT_MOD_INIT_OK

INIT_ERROR ->
RESIDENT_MOD_INIT_ERROR

NOTIFY_EVENT_ACK_OK ->
RESIDENT_MOD_NOTIFY_EVENT_ACK_OK
Add a test to check passed parameters of event notification to the resident.