add json and binary switchable options to tests