Add a test for vec::retain
Merge pull request #4484 from sanxiyn/test-retain

Add a test for vec::retain