Added test cases to SelectorTest