Check memory by storing beforehand complement of expected result