added test main for server