Added detach test