I was able to find the answer to "Test 2" by calculating each character's number in relation to their place in the alphabet, then alternating between multiplication and addition, then multiplying by the number of characters (or adding, if you were to keep in line with the original pattern), then adding the number of characters. So -Test 220 x 5 + 19 x 20 + 2 x 6 (number of characters, including spaces) + 6 = 498

Then I tried the other examples using the same pattern, but it didn't work, so I gave up. Probably because of the case matters thing, or my entire algorithm is wrong, and I just got that one correct by a fluke.