Fix tests for multiple dynamic module paths