A man is to stand trial at Greenock Sheriff Court next week charged with driving a car dangerously and narrowly avoiding a collision with a lorry.