Fixed bug when making dependencies for tests