server works but test do not