The Why Don’t We singer took the stand for the first time to testify about an alleged dark-web murder-for-hire plot targeting him