Bugfix + finished test for simple scripts preprocessing