Fix toJSON for belongsTo with string.

This test is kind of wonky, and any feedback on how to improve would be appreciated.