Added DeltaState* tests and more todo code.