support library projects

support library projects by using the androidTest tasks to merge resources
I'm not sure here if the `debuggable` attribute is the same in the test variant maybe use `testVariant.testedVariant`?