Ensure equality returns correctly