Added test for addDelta function