Heart attack test can reduce hospital admission: study