Refactor cas3 verification and add tests
Merge pull request #8 from pipermerriam/piper/add-tests-around-cas3-verification

Refactor cas3 verification and add tests