Fix edit preferences test