Adding tests of preferences changed