Fix feature test for external activity.

- Fix feature test for external activity.
Fix feature test for searching investigations.

- Fix feature test for searching investigations.