Fixes overflow issue when listing tests.
Added CTest targets to perform basic test of --list-tests and --list-tags options.
Merge branch 'list_tests_issue'