Made the code for testing functions only run if it's called directly, no...

...t when imported as a module.