Create test for coerce param to string on objects with bad toString

Summary: Added a test for fix #5323338

Reviewed By: @bertmaher, @jdelong

Differential Revision: D1614697