use rails 4.1
use :restrict_with_error
work on test errors