Fix bug in freedns
Start adding tests