Fixed failing test and added root_schema check before accessing its id