Update state after operation for mocking purposes