Refactor registrar tests to create/destroy registrar on each test
Unit tests