Fix TM.repo* methods
Squashed 'core/' changes from 3771edd..8262f2c

8262f2c Fix TM.test() repo validity test; test is still odd.

git-subtree-dir: core
git-subtree-split: 8262f2c351400ac29f65af43348ff55de0555946
Merge commit '3efa2947a7a925698a929af9d23415b6345e78ea' into develop