fixing test to use variables rather than json string