Add attach / detach tests
7 files changed