writing tests for decentralized application