Refresh imenu index before calling which-function

Otherwise old index is used. The reproducer is:

1. run single test
2. rename the test
3. run single test again

Result: test with old name is run.
Merge pull request #124 from iNecas/which-function-refresh

Running single test after test-rename doesn't work as expected