Refactor unit test addition macros
Prepare an advanced version of the unittest addition macro used for test cases which require some non-standard set-up, like extra sources or link libraries.