refactor old test example for the changed python interface.