After transcending that dimension presented by his child and wife, he was presented by Maya with his future: he would become a great king of men. This too he had to go beyond, and at this point he entered the spiritual realm and was then presented with temptations there after demonstrating his attainment.
The tests under the Bo tree are almost beat for beat similar to the tests of the Christ. It is the way that the Christ and Buddha myths were differently interpreted that spelled the primary differences between these narratives. The cultures that bore the stories into existence were different, and the future mutants of those stories were also different. It is interesting then that there is so much overlap between these redeemer/savour myths, though of course that cultural different winds up producing such different practices.
It's also worth noticing that if you're planning on marrying someone that is to become a religious figure, you're pretty shit out of luck. Cause it really didn't go well for the women in Siddhartha's life, nor Jesus'.