Added min_value and tests for flat task
Merge pull request #83 from astropy/fix_flat

Fix flat