simplify vector allocation from &str for tests.