Added ThreadLocal<ApplicationManager> variable
Fix test
Refactor base strucure
Merge
Added parallel test running