Fix starting and stopping server, add a bunch of specs