InterestRate test in Scala