fixed the following in testSQLProcessor::test_exists().

- wrong number of expected selected rows
- problem that cannot count the duplicated value due to
  using 'set'.