constraint unittest updated