Add support for multiple inheritance in tests

This is related to the this trac ticket here: https://trac.torproject.org/projects/tor/ticket/7999.

With this patch we are now able to inherit from more than one test template.