Added constraint id check for promise type + unit test