add test cases for accountCommand