Added server function logic unit tests