Fixed compilation issues with test program.
Added clone and destroy methods to interface.