Added unit test for modified table case

Added unit test for modified table case and removed check in renamed
table case due to the impossibility because of previous two checks