Curiosity rover hammers into first Mars rock in crucial test