fix bug in eq operator
add test script