Added a FundamentalTransformerTest for the to Script Function und fixed a few bugs.