There are many reasons why you may get a heartburn. There can be medical reasons, but there can also be lifestyle or habit -related reasons. For example, if you eat too much spicy food, you can suffer a heartburn. If you consume lots of coffee, then also it can give rise to heartburn. If you immediately go to sleep after having a heavy meal it can give you acidity. Hence, it is a habit related problem in most of the cases. But sometimes it can also be a medical problem. Therefore, it is very important to go for a heartburn test when the symptoms don’t go away.