Mock server correctly handles dependencies