Merge branch 'wip/coverage_90' into 'master'

Clean tests and cover more code

Clean up tests code
Add some tests to cover more code

See merge request !4
1 job for 1-stop-hard-coding-term-of-services-url in 10 minutes and 23 seconds (queued for 2 seconds)
Status Name Job ID Coverage
failed coverage #58


Name Stage Failure
coverage Test There is an unknown failure, please try again
sys:1: ResourceWarning: unclosed file <_io.BufferedRandom name=6>
sys:1: ResourceWarning: unclosed file <_io.BufferedRandom name=5>
sys:1: ResourceWarning: unclosed file <_io.BufferedRandom name=4>
$ coverage report
Name Stmts Miss Cover
-------------------------------------- 161 8 95%
ERROR: Build failed (system failure): API error (500): Cannot start container 4116fae6cd26286b0ff645b91a5f039c3668db0b963048d5789194a6f7f1431e: [8] System error: Unit docker-4116fae6cd26286b0ff645b91a5f039c3668db0b963048d5789194a6f7f1431e.scope already exists.