fixed test, added configurable os-dependent version for opencv