Added test checking for the wrong shape ofi the mask