BUG: fix repo name tests when prefix is not normalized.