- Fixed bug  with null pointer error when getting account
- Added missing test