Fix test with module pattern