Fix some bugs & and tests for Account class