Add a test to ensure values are being encoded