modified test_common_code.sh and test1_SqPo_varyAmg.sh

I have solidified how the different preconditioners are coded.

A lot more stuff have now moved into test_common_code.sh

So there will be less mistakes