Improved detached head tests