add module Test functions for optimization