Removes unnecessary arguments in test.