optimize server tests