test and base expantion bugs