Add tests that check both min and max
fix rubocop warning
Merge branch 'rel_201411'