Implement a function that calculates the modulus of multiple pairs of integers.
Functionality:
You need to create a function called calculate_modulus which accepts a list of test cases. Each test case is a tuple consisting of two integers, A and M. The function should return a list of results where each result is the modulus of A by M (i.e., A % M) for each tuple in the input list.
Input/Output Requirements:
Input: The function will take one parameter:
test_cases: A list of tuples, where each tuple contains two integers (A, M) such that M is not zero.
Output: The function will return a list of integers, where each integer corresponds to the result of A % M for each tuple.