Update tests to use composer instead of cloning manually

Update tests to use composer instead of cloning manually needed components.