Add tests for semantic history handling filenames with parens and line numbers