Add tests for update of source dict to contents daemon, fix bug in port number