function and variable in the module, verifies a few return values and even tests a couple of known error conditions.