Improve units test (#1603)

11 jobs for master in 9 minutes and 9 seconds (queued for 2 seconds)
Status Job ID Name Coverage
  Build
failed #9898
build_bionic

00:02:28

passed #9889
build_buster

00:03:22

passed #9894
build_stretch

00:03:19

failed #9897
build_bionic

00:02:37

failed #9896
build_bionic

00:02:35

failed #9895
build_bionic

00:02:38

failed #9890
build_bionic

00:02:35

failed #9893
build_stretch

00:02:42

failed #9888
build_stretch

00:02:41

 
  Sign
skipped #9891
sign
 
  Deploy
skipped #9892
pages
 
Name Stage Failure
failed
build_bionic Build
make[2]: Leaving directory '/builds/lemonldap-ng/lemonldap-ng/lemonldap-ng-portal'
dh_auto_test: make -j2 -O test returned exit code 2
debian/rules:20: recipe for target 'build' failed
make: *** [build] Error 25
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
debuild: fatal error at line 1152:
dpkg-buildpackage -rfakeroot -us -uc -ui failed
ci-build-pkg: debuild failed
ERROR: Job failed: exit code 1