Add some tests for the spray server.
Fix scalastyle warnings.