Proper server invocation in tests