RF: slightly refactor csa tests; add test

Make error more explicit for too many items in the csa structure.

Add module global for max items and test
Merge pull request #1 from matthew-brett/refactor-csa-test

MRG: A little refactoring