Add exception tests for ResourceExists and ApplicationExists

Change-Id: If1825ac041dd01f920693c2278a06890651dc9bb