Fixes logic for buggy create new module test