Added tests for getApplicationDefault, and cleaned up other tests