fix flaky test

Fix flaky tests that timeout by removing dynamic module dependencies in
favor of cached module dependencies.
Merge pull request #796 from ekashida/fix-flaky-yui

fix flaky test