Moved server GET handling to function
Updated test documentation