api: adding cancel delegated vote and test case for it