Okay, I just have to mention two more...
Robert J. Sawyer's
The Terminal Experiment, about a scientist who creates 3 computer models of himself, each missing a key psychological awareness, in an effort to find out what death and possible afterlife is like. One of the 3 AIs ends up committing murder.
The series of murder mysteries, by Donna Andrews, where the sleuth, Turing Hopper (LOL), is actually a computer program. The first in the series was
You've Got Murder. I have to admit that I'd never heard of this until I started Googling around trying to get the names of the books I'd been thinking of for this thread. It looks interesting, in a tongue-in-cheek way, and I'm probably going to have to read it now!