added tests for encoding the same data twice with Mojo::JSON