Add method to set parameters on head plugin in chain
Error checking when setting parameters

Includes a two shiney new test cases!