Modified test_get_deleted_image to allow for multiple behaviors

* Changed test_get_deleted_image to have multiple implementations
  based on the current configuration

Change-Id: Ifc1d93ff5d8f734fa40dc1e24745ed2e39485ba8