Amicable numbers are pairs of numbers each of whose divisors add to the other number. (Note: 1 is included as a divisor but the numbers are not included as their own divisors.) Design and implement an algorithm that tests whether a given pair of numbers are amicable numbers.