http: use httptest.ResponseRecorder instead of fakeResponseWriter
http: remove unused code
http: add const machinesPrefix