Bugfixs(? not sure ...) + first tests
First test script