pref tests fixes