add test #1764 and fix module works