Making sure spec pass for invalid params