add convenience method for instantiating tests from response bodies