Made insert system work.
Added possibility for maketest in magic.