Unittests for app extension methods and some small fixes

Includes a small change to the handling of the clientcontext in the webextensions class. Instead of building up the clientcontext for every test separately, I create the clientcontext now in the intialize method and dispose it in the cleanup method.