fixed mem leaks in tests

git-svn-id: https://roadrunnerlib.googlecode.com/svn/branches/refactor_modelgen@934 c0027639-9190-0b57-01eb-f09a03790dae
memory leak fixes in NOMSupport

git-svn-id: https://roadrunnerlib.googlecode.com/svn/branches/refactor_modelgen@935 c0027639-9190-0b57-01eb-f09a03790dae
merge