added test for decimal-to-integer truncation