Added tests for viewClientDetails and viewAccountDetails + fixed bugs