test/stargazers_count.js: refactor test server.

Refactor the test suite such that tests can be executed in any order and
the HTTP test server is only started when needed.