Fix bug caused by exact name in view
Fix bug in get_exact_name
Add more tests for get_exact_name