Extract test name by regex.
Add test case of example functions.
Merge pull request #224 from wancw/extract_example_name

Fix name extraction of examples