refactored CapitalTransaction tests