Fixes overflow issue when listing tests.
Added CTest targets to perform basic test of --list-tests and --list-tags options.
Merge pull request #207 from Fraser999/list_tests_issue

List tests issue