SERVER-14425 Fix memory leak in a unit-test and rename