moved test from doctest to unittest since there was a unsolvable problem
with the `http` method, which is not present in the browser and the
publish test method.