Write proper testing for hostnames
Fixed bug when TLD has an asterisk. Improved debugging output by showing which rules a hostname matches