Added tests for GET /api/dns/rule/:id handler.
Fixed #parse_response so that these tests pass.
Added more tests for GET /api/dns/rule/:id with invalid input.
Also changed handler to return 404 when rule isn't found.