Added size to program proto structure.
Program factory returns programs with non-empty content.
Tests.