Fix getOutputFile() for tests
Workarounds for protected interfaces in Android SDK
Compile tests fixed and optimized