Bug 828492: bump requests version to 1.0.4, add self-test script