Alternative safe-repr and enhanced test