Heart attack can be predicted months or years in advance with a test