Added channel for result codes to http communication. Fixed some unit tests