fix bug wrong working directory for static server
add tests for /api/raw