Created the test() function for testing the existence of the current or given data pipe.
Authored by: bugman 2007-11-24
Parent: [r3876]
Child: [r3878]