pulls out test for toString implementation