[task] changed Extension to builder pattern and adjusted tests to it
[task] rename variable
[task] added check for type
Merge pull request #93 from davidmoebius/extension_builder

[task] changed Extension to builder pattern and adjusted tests to it