Make the test suite depend on the library package.  This is well supported in recent cabal releases.  This commit is a candidate 1.8 release