Removing unused variables from test vectors