Added test spec to account.rb

I have added test spec to account.rb file along with the changes that you had told.