Fixed toplevel mode tests not running