Why were you so hung up on whether it had a laptop or not? You know that it doesn't, don't you?
Get it to write the code, then you test it.
Get it to write the code, then you test it.
Curiosity. I was interested in how it would respond once it realized it was lying or once it realized I knew it was lying.