Add extra test case for is_modified calculation