refactored test for Account model