added tests
Merge pull request #2 from dyp2000/master

added tests