add test for build-all-approx-patterns