Implement a function named calculate_minimum_rubles that calculates the minimum cost in rubles to ensure that a given integer n, which represents a quantity, is a multiple of 4. The function should consider costs based on three given package options (with prices a, b, and c) to determine the least expensive way to adjust n to the nearest multiple of 4.
Input Requirements
The function should accept three parameters:
An integer n (0 ≤ n ≤ 10^9) representing the initial quantity.
An integer a (0 ≤ a ≤ 10^9) representing the cost to add 1 to the quantity.
An integer b (0 ≤ b ≤ 10^9) representing the cost to add 2 to the quantity.
An integer c (0 ≤ c ≤ 10^9) representing the cost to add 3 to the quantity.
Output Requirements
The function should return an integer that represents the minimum cost in rubles required to make n a multiple of 4.
Implementation Details
The function should first check if n is already a multiple of 4. If true, it should return 0.
If not, calculate the remainder when n is divided by 4.
Depending on the value of this remainder, calculate the minimum cost using the provided options and return that value.
File Requirements
The solution must be implemented in a file named /app/solution.py.
Be sure to include necessary error handling and test cases to verify the correctness of your implementation.