A Greenock man is to stand trial later this year after he denied supplying class B drugs at a homeless shelter in the town.