fixed __str__
adding test for __str__