Set up stubs, composer and tests