Add tests for substr() with vector arguments.