Updated unit tests to allow for app-only testing. Also fixed some of the tests to make them succeed using app only