Added test
Preserving display order and dir with hidden fields.
Removed minitest gem dependency.