added test and improved module resolution for external reporter