add tests to modules and factory