Added mask shape check
Added test checking for the wrong shape ofi the mask
Merge pull request #403 from samuelstjean/fix_tenfit_mask

Added mask shape check in tenfit