Not quite what happened, they told it to do these things and to "achieve its goal at all costs" but the articles written on it made it sound like it was trying to trick the people doing the test of its own accord, when it was just doing as it was told.
It didn't really "hack itself", it copied...