Allow running arbitrarily large capacity tests

Fixes https://github.com/numenta/nupic.research/issues/100.