Fix error option in unit test