Initial tests and refactor of trust.py

### Changelog
* Unit test generation of proof-of-burn address.
* Minor module refactor.
I will look into that when I test the rest of the module.