Hello! Great question Sushant. Yes, we test the code by providing corrupted data alongside the correct ones. There are programmes written for testing the Hamming code. You can even write one yourself if you understand the methodology explained in the article correct. Let me know if you are interested, I can explain more.