State lawmakers to hear testimony on legalizing cannabis