fix constraint test