Fix bug with target variable in test bench