Added expectation difference and tests.