doc for update and tests for array whereCondition