A man is to stand trial after he denied damaging a car with a baseball bat in Greenock before allegedly assaulting two police officers at Inverclyde Royal Hospital.