fixed module inheritance chain bug, module tests