rewrite mount functional tests