Fixed server testing in main