Add test for calculating uncaptured amount