fix flaky test

Fix flaky tests that timeout by removing dynamic module dependencies in
favor of cached module dependencies.