Refactored: tests utilizing HTTP Server (DRY).