Issue #3458422 by mstrelan, smustgrave: Add string return typehints to protected test helper methods
mentioned in commit 67b91bcb