Move setup to test/setup.js
Made this server API standalone