clean up ledjer controller and tests