Added support for field options max_value and min_value.

Added a few test for batch insert.