Fixed update, doc replacement.
Add Delete support, update $set and upsert test cases.