KD: Added test for getAmount