tests: default test requirements per branch

* Fixes issue with builds not passing in local github branches due to
  requirements for branch not being found.

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
tests: tmp directory cleaning fix

* Fixes issue causing tests to fail due to cleaning system wide
  temp directory.

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>