Legislators hear testimony on bills about abortion rights