add test for the extensiontype interface

This PR contains the tests for https://github.com/osiam/server/pull/245