fix param count for unique and exists
add test