changed data method to tostring added test