added primitive test and changed error message names to reflect constraint type