added tests for table renaming