test complete flag updating.