test GET /status returns ok, refactor server and move it to a new file