build: Add duplicate symbol checking as part of make test