Added test for Preference Activity.