test: re-adding isPinned helper
test: re-adding isPinned helper

helper is needed for test runner in node-mongodb-native

mongodb/node-mongodb-native,mongodb/node-mongodb-native,mongodb/node-mongodb-native,mongodb/node-mongodb-native