add qunit tests for selection problem