Reformat unit test

Improved output readability and adjusted random logic. Also corrected
some url specification differences.