Added unit test for program

Moved gc() to UnitTest.assertions