Reformatted dns::key and wrote tests for it