add preferences test, update preferences format