adapt test library for modules testing