abdt_naming: refactor, extract tests to module

Test Plan:
$ ./precommit.sh