Fix models tests for new nameregex