Fix some bogus tests which depends on the application setting
Minor fix