The hardware test, holding down the D key, would not work either. It crashed just as it appeared it was going to log in. The reinstall of OSX worked but after installation there was no change, It crashes in exactly the same place. So I am no nearer knowing if it is a hardware or software...