added constraint violation exception adjusted tests