It's closely related to the spoon test which is when one puts a spoon under their pillow and then prays for a certain kind of weather the next day. The difference is that no "luck" is achieved by the spoon test, just a certain outcome.
Ancient, archaic forms of this test include plucking daisy petals and saying "he loves me, he loves me not", and breaking wishbones
My bagel landed cream cheese side up!
-Dude, lucky toast test!