Woman's ex testifies at NSW murder trial