Test implementation of a 'class' in javascript - unlike most 'class' implementations this does combine inheritance, encapsulation and instantiation.