Refactored interface for Finance tracker and updated test case.