Snapchat testifies on online child safety