proxy chain and test stubing