Prevent randomly failing tests by proper dependency management