Added test for custom fields with min_value and max_value validators

Hi - This pull request has a failing test which demonstrates the problem in #926