A teenager is to stand trial next year after he denied firing a ‘pistol style handgun’ at a man in a Greenock train station.