Two men are to face a trial after they denied stealing robbing another man at knifepoint at a flat in Greenock.