Test Detached head problem fixed