A Greenock man has denied injuring a police officer by throwing a can of alcohol at her, after allegedly threatening to set fire to his home.