modularaizing tests from modules for node