Move GetPrefixTest and add missing TestCase.