added tests
Merge pull request #3 from lukaszraczylo/tests

Added automatic method testing