checking whether toString works