added testprogram for cmake builds