add test for ORCC and ANDCC
refactor ANDCC and ORCC
add test for ABX
test with more interesting areas