Added qunit tests for selector code.