tests + toString methods