programSize - not tested yet!
Tests for optimizer, some fixes