Netanyahu ends court testimony with judiciary critique