Made test case consistent with itself.
Rudimentary parsing of build failures when importing a package with conflicting declarations. Fixes #273