added test when_expand_table