fix server (http) and test