Add equality test for value validator