This smart contract uses Openzeppelin ownable contract To add openzeppelin librairies run this command npm install --save-dev @openzeppelin/contracts Run the tests with this command : npx truffle test test/voting.js --network develop