SERVER-15564 Fix unused variable warnings in test