Add unit test for multiple attach / restart