Merge "add detaches to attachment test"