Test forking with the adapter

I do not understand why the commands have to be run in this order,
but it seems the only way. Notably, we need to do stuff in preparation
for forking.