created serverspecs and fixed code to pass tests