Made __main__ test independent of the rest of the package.