fix specs to be using the invalid parameters error syntax