SFPD officer on trial in man's beating testifies, prosecutor questions training