testing account logic