Fix opts passing in test