add Multithread test
fixed bug: bad access when insert the document it has NSNull data.