Update requestAction() test methods.

These methods instead of returning arrays now set the reponse body
with serialized data.