SERVER-13188 Migrate aggregation jstest suite to use write commands api

Fix testshard1.js