Refactor the title and swap case tests.
Merge pull request #183 from RoelVanNyen/refactor_case_test

Refactor the title and swap case tests.