Rewrite InstanceAction object test cases using mock

This change rewrites the InstanceAction object test cases as a
groundwork for other InstanceAction changes to come.

This is a part of: blueprint make-instance-action-use-objects

Change-Id: I73eafa778bc0b558fe3c3497ec6892f52e8088db
Merge "Rewrite InstanceAction object test cases using mock"