ACCUMULO-2345 Improve ConstraintCheck.check and add unit test

Signed-off-by: Bill Havanki <bhavanki@cloudera.com>