fix for bug with more than one edit constraint

added a test for two edit constraints, fixed bug