using class::xsaccessor
updated tests