added testing of preferences setting/getting