in testing, exclude private attributes in comparison