Added RootSelector tests.
Merge pull request #3 from BraveSirAndrew/master

Added RootSelector tests. Fixed RootSelector bug