function newNodeTypeTester(type) {
	return {
		test: node => node.type === type,
	};
}
Creates tester which check if a node is specific type.
@param {string} type The node type to test.
@returns {Object} the created tester.
@private