Vegas probably knows about these, but others who are interested in the topic of AI and consciousness may not know about them, so ... look here, for ideas put forward by Alan Turing and John Searle:
https://en.wikipedia.org/wiki/Turing_test
https://plato.stanford.edu/entries/chinese-room/
I don't think we can really get into a serious discussion about whether a computer can be self-aware, or 'conscious', without looking at the problem of consciousness itself, the main 'unsolved' problem in philosophy.
But whether they are, or can become, 'conscious', (assuming this concept is relevant at all), it will be a good idea to
incorporate Asimov's Three Laws of Robotics -- certainly the first one -- into all AI systems:
https://en.wikipedia.org/wiki/Three_Laws_of_Robotics