fixed bugs discovered by JUnit tests
fixed typo
Merge pull request #703 from davherrmann/issue#688

Issue#688: fix bugs in LendingViewModel