Why added server script will not reflected in module code?

You can also export server script using fixtures
this may help for you