Added some test cases.
Merge pull request #1 from twekberg/master

Added some test cases.