Fix invalid params tests