Add test for passing an object to stringify