diff --git a/modules/payment/tests/commerce_payment_ui.test b/modules/payment/tests/commerce_payment_ui.test
index a34419f..d70a645 100644
--- a/modules/payment/tests/commerce_payment_ui.test
+++ b/modules/payment/tests/commerce_payment_ui.test
@@ -156,8 +156,9 @@ class CommercePaymentUITest extends CommerceBaseTestCase {
     $this->assertFieldByXPath("//select[starts-with(@id, 'edit-currency-code')]", NULL, t('Currency code field is present'));
     $this->assertFieldByXPath("//input[starts-with(@id, 'edit-payment-details-name')]", NULL, t('Name text field from payment example module is present'));
     $this->assertFieldByXPath("//input[starts-with(@id, 'edit-submit')]", NULL, t('Save button is present'));
+    $payment_amount = intval($balance['amount'] / 2);
     $post_data = array(
-      'amount' => ($balance['amount'] / 2),
+      'amount' => (commerce_currency_amount_to_decimal($payment_amount, $balance['currency_code'])),
       'currency_code' => 'USD',
       'payment_details[name]' => $this->randomName(),
     );
@@ -168,18 +169,18 @@ class CommercePaymentUITest extends CommerceBaseTestCase {
 
     // Check order balance, it should be half of total now.
     $new_balance = commerce_payment_order_balance($order);
-    $this->assertEqual($new_balance['amount'], ($balance['amount'] - $post_data['amount']), t('Order balance is now half order amount'));
-    $this->assertRaw('<td class="label">' . t('Total paid') . '</td><td class="total">' . commerce_currency_format($post_data['amount'], $post_data['currency_code']) . '</td>', t('Total paid now reflects the new payment'));
+    $this->assertEqual($new_balance['amount'], $balance['amount'] - $payment_amount, t('After half payment order balance is correct'));
+    $this->assertRaw('<td class="label">' . t('Total paid') . '</td><td class="total">' . commerce_currency_format($payment_amount, $post_data['currency_code']) . '</td>', t('Total paid reflects the payment'));
     $this->assertRaw('<td class="label">' . t('Order balance') . '</td><td class="balance">' . commerce_currency_format($new_balance['amount'], $new_balance['currency_code']) . '</td>', t('Order balance is displayed correctly'));
 
-    // Add a payment for another half.
+    // Add a payment for the remainder.
     $this->drupalPostAJAX(NULL, array('payment_method' => 'commerce_payment_example|commerce_payment_commerce_payment_example'), array('op' => t('Add payment')));
     $this->assertFieldByXPath("//input[starts-with(@id, 'edit-amount')]", NULL, t('Amount field is present'));
     $this->assertFieldByXPath("//select[starts-with(@id, 'edit-currency-code')]", NULL, t('Currency code field is present'));
     $this->assertFieldByXPath("//input[starts-with(@id, 'edit-payment-details-name')]", NULL, t('Name text field from payment example module is present'));
     $this->assertFieldByXPath("//input[starts-with(@id, 'edit-submit')]", NULL, t('Save button is present'));
     $post_data = array(
-      'amount' => $new_balance['amount'],
+      'amount' => commerce_currency_amount_to_decimal($new_balance['amount'], $new_balance['currency_code']),
       'currency_code' => 'USD',
       'payment_details[name]' => $this->randomName(),
     );
@@ -188,7 +189,7 @@ class CommercePaymentUITest extends CommerceBaseTestCase {
     // Reload the order.
     $order = reset(commerce_order_load_multiple(array($this->order->order_id), array(), TRUE));
 
-    // Check order balance, it should be half of total now.
+    // Check order balance, it should be zero now.
     $new_balance = commerce_payment_order_balance($order);
     $this->assertEqual($new_balance['amount'], 0, t('Order balance is now zero'));
     $this->assertRaw('<td class="label">' . t('Total paid') . '</td><td class="total">' . commerce_currency_format($balance['amount'], $balance['currency_code']) . '</td>', t('Total paid is now equal to order total'));
