Man appears in court over threat to kill allegations