Add a bunch of tests to struct and fix the bug they uncovered.
Remove now-useless test function
Fix some spurious cruft
added expect on the len
Merge pull request #25 from tidepool-org/kjq/structTests

Add a bunch of tests to struct and fix the bug they uncovered.