Add check for odd and non-square to whiten tests.
(#563)