Bug in Unit on inheritance