Vic woman confessed to murder, court told