Test for removing tables mid loop