Humans are self aware because of the senses and the way how the brain analyses the perceptions received.
If the robots are fitted with the necessary sensors and the programs to analyse them and re-program themselves according to the sensory data received,then we will be no longer away from self-aware programs and robots.
Well i think people are self aware as anything that possesses self monitoring and a short term memory, so in this case it's not the Turing test i'am using,it's an assumption, but that's a good insight you have there.
I think it is possible for the machine to "think" (if we consider "think" a process of reasoning). We already have that...
But i don't see human kind creating a machine that can feel emotions in the foreseeable future. I think it would be extremely cruel of us to create such a "Frankenstein".