Add test and test fixture, optimize array initialization
Merge pull request #2 from tmcw/test-opt

Add test and test fixture, optimize array initialization