adding interest earned behavior and test cases