cleanup in beat unit test