Bahmni: Unable to save a new patient (NullPointerException)

Here is my build error:

Firefox 46.0.0 (Ubuntu 0.0.0) patient context initialization should set preffered identifier to patient identifier if the configure attribute does not exists FAILED

TypeError: can’t assign to properties of (new String(“1234”)): not an object in /home/romain/repos/bahmni/openmrs-module-bahmniapps/ui/app/clinical/displaycontrols/patientContext/directives/patientContext.js (line 9) convertBooleanValuesToEnglish/<@/home/romain/repos/bahmni/openmrs-module-bahmniapps/ui/app/clinical/displaycontrols/patientContext/directives/patientContext.js:9:3108 er/<@/home/romain/repos/bahmni/openmrs-module-bahmniapps/ui/app/components/lodash/dist/lodash.min.js:31:385 at@/home/romain/repos/bahmni/openmrs-module-bahmniapps/ui/app/components/lodash/dist/lodash.min.js:18:190 rr/<@/home/romain/repos/bahmni/openmrs-module-bahmniapps/ui/app/components/lodash/dist/lodash.min.js:31:172 ne@/home/romain/repos/bahmni/openmrs-module-bahmniapps/ui/app/components/lodash/dist/lodash.min.js:49:464 convertBooleanValuesToEnglish@/home/romain/repos/bahmni/openmrs-module-bahmniapps/ui/app/clinical/displaycontrols/patientContext/directives/patientContext.js:9:2849 controller/<@/home/romain/repos/bahmni/openmrs-module-bahmniapps/ui/app/clinical/displaycontrols/patientContext/directives/patientContext.js:9:1282 .then@/home/romain/repos/bahmni/openmrs-module-bahmniapps/ui/test/unit/clinical/displaycontrols/patientContext/directives/patientContext.spec.js:195:32 controller@/home/romain/repos/bahmni/openmrs-module-bahmniapps/ui/app/clinical/displaycontrols/patientContext/directives/patientContext.js:9:648 invoke@/home/romain/repos/bahmni/openmrs-module-bahmniapps/ui/app/components/angular/angular.js:4535:14 $ControllerProvider/this.$get</</instantiate<@/home/romain/repos/bahmni/openmrs-module-bahmniapps/ui/app/components/angular/angular.js:9380:24 nodeLinkFn@/home/romain/repos/bahmni/openmrs-module-bahmniapps/ui/app/components/angular/angular.js:8497:34 compileTemplateUrl/<@/home/romain/repos/bahmni/openmrs-module-bahmniapps/ui/app/components/angular/angular.js:8770:13 processQueue@/home/romain/repos/bahmni/openmrs-module-bahmniapps/ui/app/components/angular/angular.js:14991:28 scheduleProcessQueue/<@/home/romain/repos/bahmni/openmrs-module-bahmniapps/ui/app/components/angular/angular.js:15007:27 $RootScopeProvider/this.$get</Scope.prototype.$eval@/home/romain/repos/bahmni/openmrs-module-bahmniapps/ui/app/components/angular/angular.js:16251:16 $RootScopeProvider/this.$get</Scope.prototype.$digest@/home/romain/repos/bahmni/openmrs-module-bahmniapps/ui/app/components/angular/angular.js:16069:15 $RootScopeProvider/this.$get</Scope.prototype.$apply@/home/romain/repos/bahmni/openmrs-module-bahmniapps/ui/app/components/angular/angular.js:16359:13 done@/home/romain/repos/bahmni/openmrs-module-bahmniapps/ui/app/components/angular/angular.js:10791:36 handleResponse@/home/romain/repos/bahmni/openmrs-module-bahmniapps/ui/app/components/angular-mocks/angular-mocks.js:1272:9 createHttpBackendMock/$httpBackend.flush@/home/romain/repos/bahmni/openmrs-module-bahmniapps/ui/app/components/angular-mocks/angular-mocks.js:1631:9 @/home/romain/repos/bahmni/openmrs-module-bahmniapps/ui/test/unit/clinical/displaycontrols/patientContext/directives/patientContext.spec.js:203:13

Firefox 46.0.0 (Ubuntu 0.0.0) programService test updatePatientProgram FAILED

Expected { dateEnrolled : ‘2016-01-01T00:00:00+0700’, states : [ ], uuid : ‘Some UUID’, dateCompleted : ‘2016-01-12T07:00:00+0700’, outcome : null, attributes : [ { attributeType : { uuid : ‘079b73c6-b854-11e5-9584-0800274a5156’ }, value : ‘123’, uuid : ‘6ccf5c9c-9f8c-4e46-b40b-c203b033f6d7’ }, { attributeType : { uuid : ‘07ae82e4-b854-11e5-9584-0800274a5156’ }, value : ‘2016-01-12T00:00:00.000+0000’, uuid : ‘12cac096-ac84-419f-88c3-f140a3c13d98’ } ] } to equal { attributes : [ { uuid : ‘6ccf5c9c-9f8c-4e46-b40b-c203b033f6d7’, attributeType : { uuid : ‘079b73c6-b854-11e5-9584-0800274a5156’ }, value : ‘123’ }, { uuid : ‘12cac096-ac84-419f-88c3-f140a3c13d98’, attributeType : { uuid : ‘07ae82e4-b854-11e5-9584-0800274a5156’ }, value : ‘2016-01-12T00:00:00.000+0000’ } ], states : [ ], outcome : null, dateCompleted : ‘2016-01-12T05:30:00+0530’, dateEnrolled : ‘2016-01-01T00:00:00+0530’, uuid : ‘Some UUID’ }. @/home/romain/repos/bahmni/openmrs-module-bahmniapps/ui/test/unit/common/domain/services/programService.spec.js:616:13 handleResponse@/home/romain/repos/bahmni/openmrs-module-bahmniapps/ui/app/components/angular-mocks/angular-mocks.js:1270:24 createHttpBackendMock/$httpBackend.flush@/home/romain/repos/bahmni/openmrs-module-bahmniapps/ui/app/components/angular-mocks/angular-mocks.js:1631:9 @/home/romain/repos/bahmni/openmrs-module-bahmniapps/ui/test/unit/common/domain/services/programService.spec.js:622:9

Error 2 looks like something similar than Bahmniapps: 2 tests failing in the release-0.81 branch