Add common test lib, add PUT/PATCH/DELETE document tests