Fix last bugs in test suite.
Use cwise product to compute deltas.