Moved test module printing to separate function
Added module argument validation
Added test execution code