Fixed equals test