added tests
minor fixes in tests
Merge pull request #2 from forio/tests

simple tests