add test to verify toString