A 16-year-old and 19-year-old have faced court over the death of a young Indigenous man in an alleged machete attack.