Improve server tests

This adds missing tests for `server.js`.