Added detached head tests