Fix dependencies clash when running tests