minor tests and account model