rename variables, use params dict for pane.new, add tests