Add some tests for app and auth

Change-Id: Ic564f4c0305cff2fcdccce746172c32701aa9aa6