Learning to write tests for smart contracts by following online guide - "https://www.verypossible.com/insights/ethereum-smart-contracts-learning-solidity-by-example"
Example contract is the Ballot contract from solidity documentation (solidity by example) - "https://solidity.readthedocs.io/en/develop/solidity-by-example.html#voting"