fix build-one-approx-pattern
update tests
add test for calc-combinations