What medical tests can I take to check, have I damaged my digestion system with a poor diet?

No such test. Your digestive system handles what you put into it. There's no test to see 'digestive system damage'. You should get a lipid profile done to check your cholesterol. In some cases high cholesterol and poor diet can contribute to fatty liver. A complete metabolic profile could also be checked.