Bug fixes and better testing.

NOTE:  Commented out Afsin’s test, probably failing due to record
sequence in response.
Merge pull request #14 from amida-tech/mcbranch

Bug fixes and better testing.