Add property 'maxHandles' and associated tests.