completed all 16 tests of selector.js