A man is to stand trial later this year after he denied sending threatening messages to two of his former partners.