fix test class name collision
subclass ObjectTemplate into Ruby and Portable versions