Refactoring
Renamed tryToGetTopClass to tryToGetRootClass
Merge pull request #7 from norzechowicz/tests

Refactoring