updated according to code review
replaced assertRaises with assertEqual
improved _delete_app_locator