Add some tests in server and utils Upstream-commit: c3027fa9ace7f607929af544dc1f59916f76f533 Component: engine