Import user-defined module

Import user-defined module.

Added test case