Add testTasks to the extension to allow configuration.

Should resolve #81 and probably #58. #84 should not be needed anymore. I'm still working on fixing the tests but I tested it on the example project and it works.