Whitening trainer: fix operator!=(); improve tests