processResponse method test