Added some test cases.

    * from http://blog.regehr.org/archives/1080
Back up to 100% code and branch coverage.